package service;

import java.util.HashMap;

public class ControlSCConnectionThread {
    private static HashMap<String,ServerConnectionClient> hashMap=new HashMap<>();//<email,线程>
    public static ServerConnectionClient addSCThread(String id,ServerConnectionClient serverConnectionClient){
        return hashMap.put(id,serverConnectionClient);
    }
    public static ServerConnectionClient getThread(String id){
        return hashMap.get(id);
    }
    public static void remove(String id){
        hashMap.remove(id);
    }
    public static HashMap<String,ServerConnectionClient> getHashMap(){
        return hashMap;
    }
}
